﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CalculadoraEficiente
{
    public class Multiplicacion : Operacion
    {
        public double PrimerFactor { get; set; }
        public double SegundoFactor { get; set; }

        public Multiplicacion(double primerFactor, double segundoFactor)
        {
            this.PrimerFactor = primerFactor;
            this.SegundoFactor = segundoFactor;
        }

        public override double Operar()
        {
            return (this.PrimerFactor * this.SegundoFactor);
        }
    }
}
